package com.spaty.forms;

public class Square {
	int l;
	
	public Square() {}
	public Square(int l) {
		this.l = l;
	}
	
	public float getPerim() { 
		return 4*this.l;
	}
	
	public float getSurf() {
		return this.l*this.l;
	}
        
        public double getDiag() {
                return Math.sqrt(2*this.l);
        }

}
